package admin

import (
	auto "beergo/app/check/auto/controller"
	"beergo/app/check/conf"
	"github.com/beego/beego/v2/server/web"
)

type ServiceAdminController struct {
	auto.ServiceController
}

func init() {
	web.Router(conf.UrlPrefixAdmin + "/Service/:id", 		&ServiceAdminController{}, "*:GetAction")
	web.Router(conf.UrlPrefixAdmin + "/Service/info", 		&ServiceAdminController{}, "*:InfoAction")
	web.Router(conf.UrlPrefixAdmin + "/Service/scan", 		&ServiceAdminController{}, "*:ScanAction")
	web.Router(conf.UrlPrefixAdmin + "/Service/list", 	    &ServiceAdminController{}, "*:ListAction")
	web.Router(conf.UrlPrefixAdmin + "/Service/update", 	&ServiceAdminController{}, "*:UpdateAction")
	web.Router(conf.UrlPrefixAdmin + "/Service/create", 	&ServiceAdminController{}, "*:CreateAction")
	web.Router(conf.UrlPrefixAdmin + "/Service/copy", 	    &ServiceAdminController{}, "*:CopyAction")
	web.Router(conf.UrlPrefixAdmin + "/Service/edit", 	    &ServiceAdminController{}, "*:EditAction")
	web.Router(conf.UrlPrefixAdmin + "/Service/delete", 	&ServiceAdminController{}, "*:DeleteAction")
	web.Router(conf.UrlPrefixAdmin + "/Service/:id/:field", &ServiceAdminController{}, "*:SonsAction")
	web.Router(conf.UrlPrefixAdmin + "/Service/choice", &ServiceAdminController{}, "*:ChoiceAction")
	web.Router(conf.UrlPrefixAdmin + "/Service/category", &ServiceAdminController{}, "*:CategoryAction")
}
//func (this *ServiceAdminController) Prepare() {}
//func (this *ServiceAdminController) ListAction() {}
//func (this *ServiceAdminController) GetAction() {}
//func (this *ServiceAdminController) InfoAction() {}
//func (this *ServiceAdminController) ScanAction() {}
//func (this *ServiceAdminController) CreateAction() {}
//func (this *ServiceAdminController) UpdateAction() {}
//func (this *ServiceAdminController) CopyAction() {}
//func (this *ServiceAdminController) DeleteAction() {}
//func (this *ServiceAdminController) EditAction() {}
//func (this *ServiceAdminController) SonsAction() {}
//func (this *ServiceAdminController) ChoiceAction() {}
//func (this *ServiceAdminController) CategoryAction() {}
